<?php
class NoAccess extends MY_Controller{
	
	function __construct()
	{
		parent::__construct();
		if(!$this->checkUserStatus()){
			redirect('login');
		}else{
			$this->aauth->update_activity();
		}
	}
	
	function index()
	{
		$data['toDoList'] = $this->get_tasks();
		$data['title'] = $this->title('NoAccess');
		$data['user'] = $this->aauth->get_user();
		$this->load->view($this->theme.'/header',$data);
		$this->load->view($this->theme.'/noAccess');
		$this->load->view($this->theme.'/footer');
	}
}